home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / business / pics15.zip / UPDATE.BAT < prev    next >
DOS Batch File  |  1996-01-29  |  3KB  |  144 lines

  1. @echo off
  2. cls
  3.  
  4. if "%1"=="OK" goto start
  5. goto error
  6.  
  7. :start
  8. if exist inven.dbf goto backup1
  9. unpack
  10. del unpack.exe
  11. goto end
  12.  
  13. :backup1
  14. cls
  15. echo.
  16. echo.                                WARNING!
  17. echo During the remainder of the install process, you  may see  messages  such as 
  18. echo "duplicate file name" or "file not found". These messages NORMAL and  should 
  19. echo be ignored.However,at a certain point in the Install process when the system 
  20. echo is  being "unpacked", you may  see a message such as "File already exists... 
  21. echo overwrite?".You must answer these prompts as they occur in order for Install 
  22. echo to proceed. Normally, you will  answer "y" in  every  case  but examine  the 
  23. echo filename to be certain you will not be overwriting  custom report (*.frm) or 
  24. echo label forms (*.lbl). If you have not customized any reports or labels from a 
  25. echo previous version, always answer "y" when you see these prompts.
  26. echo.
  27. pause
  28. cls
  29.  
  30. if exist address.dbf goto backup2
  31.  
  32. del x*.*
  33. rename barcodes.dbf xbarcode.dbf
  34. rename composit.dbf xcomposi.dbf
  35. rename copies.dbf xcopies.dbf
  36. rename costing.dbf xcosting.dbf
  37. rename history.dbf xhistory.dbf
  38. rename idisc.dbf xidisc.dbf
  39. rename inven.dbf xinven.dbf
  40. rename po.dbf xpo.dbf
  41. rename ponum.dbf xponum.dbf
  42. rename poytd.dbf xpoytd.dbf
  43. rename reports.dbf xreports.dbf
  44. rename serial.dbf xserial.dbf
  45. rename setup.dbf xsetup.dbf
  46. rename vendors.dbf xvendors.dbf
  47.  
  48. rename inven.dbv xinven.dbv
  49.  
  50. del *.doc
  51.  
  52. del icp.exe
  53. del setup.exe
  54. del rl.exe
  55. del dbu.exe
  56.  
  57. del *.cmx
  58.  
  59. cls
  60. unpack
  61. echo.
  62. echo.
  63. pause
  64. goto end
  65.  
  66. :backup2
  67. del x*.*
  68. rename address.dbf xaddress.dbf
  69. RENAME BARCODES.DBF XBARCODE.DBF
  70. rename bkord.dbf xbkord.dbf
  71. rename cdisc.dbf xcdisc.dbf
  72. rename coa.dbf xcoa.dbf
  73. rename coaytd.dbf xcoaytd.dbf
  74. rename codes.dbf xcodes.dbf
  75. RENAME COMMENT.DBF XCOMMENT.DBF
  76. rename composit.dbf xcomposi.dbf
  77. rename copies.dbf xcopies.dbf
  78. rename costing.dbf xcosting.dbf
  79. rename custhx.dbf xcusthx.dbf
  80. rename dreg.dbf xdreg.dbf
  81. rename history.dbf xhistory.dbf
  82. rename idisc.dbf xidisc.dbf
  83. rename inven.dbf xinven.dbf
  84. rename invoice.dbf xinvoice.dbf
  85. rename jreg.dbf xjreg.dbf
  86. rename po.dbf xpo.dbf
  87. rename ponum.DBF xponum.DBF
  88. rename poytd.dbf xpoytd.dbf
  89. rename reports.dbf xreports.dbf
  90. rename scode.dbf xscode.dbf
  91. rename setup.dbf xsetup.dbf
  92. rename serial.dbf xserial.dbf
  93. RENAME SREG.DBF XSREG.DBF
  94. rename stmt.dbf xstmt.dbf
  95. rename till.dbf xtill.dbf
  96. rename vendors.dbf xvendors.dbf
  97. rename yreg.dbf xyreg.dbf
  98.  
  99. rename address.dbv xaddress.dbv
  100. rename inven.dbv xinven.dbv
  101.  
  102. del pics.exe
  103. del rl.exe
  104. del setup.exe
  105. del dbu.exe
  106.  
  107. del *.cmx
  108. del temp.*
  109. del tinven.*
  110.  
  111. cls
  112. unpack
  113. echo.
  114. echo.
  115. pause
  116. goto end
  117.  
  118. :end
  119. transfer
  120. del unpack.exe
  121. del transfer.exe
  122.  
  123. @echo off
  124. cls
  125. echo.
  126. echo.
  127. echo.
  128. echo You MUST run the SETUP program and establish  your system
  129. echo parameters before running the ICP/PICS program. This is a 
  130. echo critical step!
  131. echo.
  132. pause
  133. del update.bat
  134. del *.cmx
  135.  
  136. :error
  137. cls
  138. echo.
  139. echo.
  140. echo.
  141. echo This file must be executed by the install program ONLY!
  142.  
  143.  
  144.